function gradient(id, level)
{
    var box = document.getElementById(id);
    box.style.opacity = level;
    box.style.MozOpacity = level;
    box.style.KhtmlOpacity = level;
    box.style.filter = "alpha(opacity=" + level * 200 + ")";
    box.style.display="block";
    return;
}

function fadein(id) 
{
    var level = 0;
    while(level <= 1)
    {
        setTimeout( "gradient('" + id + "'," + level + ")", (level* 500) + 10);
        level += 0.01;
    }
}
var pageModif = '' ; 
function openbox(page)
{
    document.getElementById('shadowing').style.display='block';
    gradient("box", 0);
    fadein("box"); 
    this.pageModif = page ; 
}

function closebox()
{
    document.getElementById('box').style.display='none';
    document.getElementById('shadowing').style.display='none';
}



